package org.grottarossa.ui.core.controls.deadline;


import java.util.ResourceBundle;

import org.grottarossa.ui.core.ApplicationSession;
import org.grottarossa.ui.core.base.BaseFormFieldFactory;

import com.vaadin.data.Item;
import com.vaadin.data.util.BeanItem;
import com.vaadin.terminal.Sizeable;
import com.vaadin.ui.Component;
import com.vaadin.ui.Field;
import com.vaadin.ui.OptionGroup;

/***
 * Factory dei campi della form di selezione data di scadenza processo
 * @author 
 *
 */
public class DeadLinFieldFactory extends BaseFormFieldFactory
{
	private OptionGroup m_type;

	public DeadLinFieldFactory(ApplicationSession appSession, ResourceBundle localizer)
	{
		super(appSession, localizer);

		m_type = new OptionGroup();
		m_type.addItem(new ExpireType(m_localizer.getString("form.types.noexpire"), 0));
		m_type.addItem(new ExpireType(m_localizer.getString("form.types.expire"), 1));
		m_fields.put("type", m_type);
	}
}
